
#ifndef __BSP_PRINT_H__
#define __BSP_PRINT_H__

#include "stdint.h"

#include "config.h"
//#include <stdint.h>
#include "hc32_ddl.h"


/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
{
#endif

/** @defgroup PRINT Configure definition
 * @{
 */
#define BSP_PRINTF_DEVICE       (M4_USART1)
#define BSP_PRINTF_BAUDRATE     (115200)
#define BSP_PRINTF_PORT         (PortA)
#define BSP_PRINTF_PIN          (Pin15)
#define BSP_PRINTF_PORT_FUNC    (Func_Usart1_Tx)


#define BSP_DUART_RX_PORT         (PortC)
#define BSP_DUART_RX_PIN          (Pin10)
#define BSP_DUART_RX_FUNC         (Func_Usart1_Rx)


/* USART interrupt number  */
#define BSP_DEBUG_USART_EI_NUM                     (INT_USART1_EI)
#define BSP_DEGUG_USART_RI_NUM                     (INT_USART1_RI)
#define BSP_DEGUG_USART_TI_NUM                     (INT_USART1_TI)
#define BSP_DEBUG_USART_TCI_NUM                    (INT_USART1_TCI)




/**
 * @}
 */

/*******************************************************************************
  Global function prototypes (definition in C source)
 ******************************************************************************/
/**
 * @addtogroup Global_Functions
 * @{
 */
void BspPrintfInit(void);

void DDL_Printf_Buf(uint8_t *buf, int len);
/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_PRINT_H__ */

/*******************************************************************************
 * EOF (not truncated)
 ******************************************************************************/
